package com.zelix;

import java.io.*;
import java.util.Hashtable;
import java.util.Vector;

class wt extends pt
    implements sm
{

    int o;
    gu p[];
    byte q[];
    boolean r;
    private static String z[];

    wt(kt kt1, int i, String s, jb jb, qy qy, PrintWriter printwriter, qy qy1)
        throws IOException
    {
        super(kt1, i, s, jb, qy);
        int j;
        int k;
        k = kt.i;
        r = true;
        if(super.m < 2)
            break MISSING_BLOCK_LABEL_224;
        o = jb.readUnsignedShort();
        if(o * 4 + 2 != super.m)
            break MISSING_BLOCK_LABEL_108;
        p = new gu[o];
        j = 0;
        if(k == 0) goto _L2; else goto _L1
_L1:
        p[j] = new gu(this, jb, qy1);
        j++;
_L2:
        if(j < o) goto _L1; else goto _L3
_L3:
        if(k == 0)
            break MISSING_BLOCK_LABEL_295;
        r = false;
        printwriter.println(i() + z[1] + z[0] + z[3]);
        q = new byte[super.m];
        q[0] = (byte)(o >>> 8 & 0xff);
        q[1] = (byte)(o & 0xff);
        jb.read(q, 2, super.m - 2);
        if(k == 0)
            break MISSING_BLOCK_LABEL_295;
        r = false;
        printwriter.println(i() + z[1] + z[0] + z[2]);
        q = new byte[super.m];
        jb.read(q);
        ((mt)h()).K = true;
        return;
    }

    public boolean b(int i)
    {
        int j;
        int k;
        k = kt.i;
        if(!r)
            return false;
        for(j = 0;j<p.length;j++){
        if(p[j].q() == i)
            return true;
        }
            return false;
    }

    void a(Vector vector)
    {
        if(r){
        for(int i = 0;i<p.length;i++){
        vector.add(p[i]);
        }
        }
    }

    public void a(Hashtable hashtable)
    {
        hashtable.put(super.k, this);
    }

    protected void a(DataOutputStream dataoutputstream, Hashtable hashtable, nh nh)
        throws IOException, tb
    {
        int i;
        int j;
        j = kt.i;
        super.a(dataoutputstream, hashtable, nh);
        if(!r)
            break MISSING_BLOCK_LABEL_63;
        dataoutputstream.writeShort(o);
        i = 0;
        if(j == 0) goto _L2; else goto _L1
_L1:
        p[i].a(dataoutputstream);
        i++;
_L2:
        if(i < o) goto _L1; else goto _L3
_L3:
        if(j == 0)
            break MISSING_BLOCK_LABEL_71;
        dataoutputstream.write(q);
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x76;
                    break;
                case 1:
                    key =20;
                    break;
                case 2:
                    key =17;
                    break;
                case 3:
                    key =75;
                    break;
                case 4:
                    key =8;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[];
        as = new String[4];
        as[0] = z("?zg*d\037p1\007a\030q_>e\024qc\037i\024xtkI\002`c\"j\003`t".toCharArray());
        as[1] = z("V.1".toCharArray());
        as[2] = z("V<Pb".toCharArray());
        as[3] = z("V<Sb".toCharArray());
        z = as;
    }
}